﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Convertor.Code
{
    class Log
    {
        public static void Write(object sender, Exception err)
        {
            Write(sender, err.ToString());
        }
        public static void Write(object sender, string err)
        {
            string mes = string.Format("\r\n{0}({1}):\r\n{2}\r\n", sender.ToString(), DateTime.Now, err);
            File.AppendAllText(Config.LogPath, mes);
        }
    }
}
